----------------------------
-- Simplistic Street
-- by Jammie Dodger
--
-- Project Started - October 20, 2009
-- Completion -None
----------------------------

function _R.Player:AddAFK()

	self.AFKTime = CurTime() + self:GetAFKTime()
	
end

function _R.Player:GetAFKTime()
	
	if self:AFKImmune() then return 0 end
	
	local time = 300
	return time
	
end

function _R.Player:AFKImmune()
if self:IsAdmin() || self:IsSuperAdmin() || self:IsBot() then
		return true
	end
	return false
end

function _R.Player:AFK()

	self.AFKTime = self.AFKTime or CurTime() + self:GetAFKTime()	
	local AFK = CurTime() > self.AFKTime
	
	if self:AFKImmune() then AFK = false end
		self:SetNWBool( "afk", AFK )	
	return AFK
end

function _R.Player:IsAFK()

	return self:GetNWBool( "afk" )
	
end
